package com.aispeech.data.pojo.task;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public final class Task {
    private String id;

    @Builder.Default
    int progress = 0;

    @Builder.Default
    private int priority = 0;
    private String hostname;
    private Long update_t;

    private Request request;
    private Metrics metrics;
    private Error error;

    @Builder.Default
    List<Result> result = new ArrayList<>();
}
